<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: ShareCount&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_share_count-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">ShareCount&lt; T &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a>&gt;</code></p>
<div class="dynheader">
类 ShareCount&lt; T &gt; 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_share_count.png" usemap="#ShareCount_3C_20T_20_3E_map" alt=""/>
  <map id="ShareCount_3C_20T_20_3E_map" name="ShareCount_3C_20T_20_3E_map">
<area href="class_share_count_base.html" alt="ShareCountBase" shape="rect" coords="0,0,110,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a2806823e1f356ced3e97de14c6672a64"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count.html#a2806823e1f356ced3e97de14c6672a64">ShareCount</a> (T *pData)</td></tr>
<tr class="separator:a2806823e1f356ced3e97de14c6672a64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa96a973f4029c4cdd5014ae0a0bff599"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count.html#aa96a973f4029c4cdd5014ae0a0bff599">~ShareCount</a> ()</td></tr>
<tr class="separator:aa96a973f4029c4cdd5014ae0a0bff599"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a415b6cce9114b69751f0dafffccfe9e5"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count.html#a415b6cce9114b69751f0dafffccfe9e5">DelUser</a> ()</td></tr>
<tr class="separator:a415b6cce9114b69751f0dafffccfe9e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc484b470cbf97467031caebda906fe9"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count.html#afc484b470cbf97467031caebda906fe9">DelSelf</a> ()</td></tr>
<tr class="separator:afc484b470cbf97467031caebda906fe9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0ce3994e2bf32818df13b686f9bb170"><td class="memItemLeft" align="right" valign="top">virtual void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count.html#aa0ce3994e2bf32818df13b686f9bb170">GetPtr</a> ()</td></tr>
<tr class="separator:aa0ce3994e2bf32818df13b686f9bb170"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_share_count_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_share_count_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_share_count_base.html">ShareCountBase</a></td></tr>
<tr class="memitem:ac6ded660af634d036d918e1e2540665b inherit pub_methods_class_share_count_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count_base.html#ac6ded660af634d036d918e1e2540665b">ShareCountBase</a> ()</td></tr>
<tr class="separator:ac6ded660af634d036d918e1e2540665b inherit pub_methods_class_share_count_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71aa38de9f4834ec5bf290473612de8d inherit pub_methods_class_share_count_base"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count_base.html#a71aa38de9f4834ec5bf290473612de8d">~ShareCountBase</a> ()</td></tr>
<tr class="separator:a71aa38de9f4834ec5bf290473612de8d inherit pub_methods_class_share_count_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a317fac433d41bfc695ac89e42fd6b909 inherit pub_methods_class_share_count_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count_base.html#a317fac433d41bfc695ac89e42fd6b909">IncRefUser</a> ()</td></tr>
<tr class="separator:a317fac433d41bfc695ac89e42fd6b909 inherit pub_methods_class_share_count_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a018e258f4017147766d06774556f5c1c inherit pub_methods_class_share_count_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count_base.html#a018e258f4017147766d06774556f5c1c">DecRefUser</a> ()</td></tr>
<tr class="separator:a018e258f4017147766d06774556f5c1c inherit pub_methods_class_share_count_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a795a4ece2ee6c7c9063c635937d43df5 inherit pub_methods_class_share_count_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count_base.html#a795a4ece2ee6c7c9063c635937d43df5">IncRefSelf</a> ()</td></tr>
<tr class="separator:a795a4ece2ee6c7c9063c635937d43df5 inherit pub_methods_class_share_count_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0d533e250158c4112f5eb954d5939eb inherit pub_methods_class_share_count_base"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count_base.html#ac0d533e250158c4112f5eb954d5939eb">DecRefSelf</a> ()</td></tr>
<tr class="separator:ac0d533e250158c4112f5eb954d5939eb inherit pub_methods_class_share_count_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f5dbb10e2cb0d4c31c5cb5faf5b1299 inherit pub_methods_class_share_count_base"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count_base.html#a3f5dbb10e2cb0d4c31c5cb5faf5b1299">RefCount</a> () const</td></tr>
<tr class="separator:a3f5dbb10e2cb0d4c31c5cb5faf5b1299 inherit pub_methods_class_share_count_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a38ed9b82dfa09c6170a82de5e519fdde"><td class="memItemLeft" align="right" valign="top">T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_share_count.html#a38ed9b82dfa09c6170a82de5e519fdde">_pData</a></td></tr>
<tr class="separator:a38ed9b82dfa09c6170a82de5e519fdde"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;class T&gt;<br />
class ShareCount&lt; T &gt;</h3>


<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00055">55</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a2806823e1f356ced3e97de14c6672a64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2806823e1f356ced3e97de14c6672a64">&#9670;&nbsp;</a></span>ShareCount()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_share_count.html">ShareCount</a>&lt; T &gt;::<a class="el" href="class_share_count.html">ShareCount</a> </td>
          <td>(</td>
          <td class="paramtype">T *&#160;</td>
          <td class="paramname"><em>pData</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00059">59</a> 行定义.</p>

</div>
</div>
<a id="aa96a973f4029c4cdd5014ae0a0bff599"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa96a973f4029c4cdd5014ae0a0bff599">&#9670;&nbsp;</a></span>~ShareCount()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="class_share_count.html">ShareCount</a>&lt; T &gt;::~<a class="el" href="class_share_count.html">ShareCount</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00063">63</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="afc484b470cbf97467031caebda906fe9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc484b470cbf97467031caebda906fe9">&#9670;&nbsp;</a></span>DelSelf()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_share_count.html">ShareCount</a>&lt; T &gt;::DelSelf </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_share_count_base.html#ace948ad8447eaab095f93efb46ee1388">ShareCountBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00073">73</a> 行定义.</p>

</div>
</div>
<a id="a415b6cce9114b69751f0dafffccfe9e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a415b6cce9114b69751f0dafffccfe9e5">&#9670;&nbsp;</a></span>DelUser()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void <a class="el" href="class_share_count.html">ShareCount</a>&lt; T &gt;::DelUser </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_share_count_base.html#a805a39a6cb45071a9c84fa12437ef86b">ShareCountBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00064">64</a> 行定义.</p>

</div>
</div>
<a id="aa0ce3994e2bf32818df13b686f9bb170"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0ce3994e2bf32818df13b686f9bb170">&#9670;&nbsp;</a></span>GetPtr()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void* <a class="el" href="class_share_count.html">ShareCount</a>&lt; T &gt;::GetPtr </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_share_count_base.html#aff7a793edad9c4ea425d5bfd486db1e4">ShareCountBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00078">78</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a38ed9b82dfa09c6170a82de5e519fdde"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38ed9b82dfa09c6170a82de5e519fdde">&#9670;&nbsp;</a></span>_pData</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T* <a class="el" href="class_share_count.html">ShareCount</a>&lt; T &gt;::_pData</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a> 第 <a class="el" href="_shared_ptr_8h_source.html#l00057">57</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/thread/<a class="el" href="_shared_ptr_8h_source.html">SharedPtr.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
